// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-vo.ts.hbs生成
import { ControlVOBase } from '@/core';
import { transformValue } from '@/utils';
import { model } from './main-form-model';

export class FormControlVO extends ControlVOBase {
    constructor(data: any) {
        //  表单预置字段
        data.srfwfmemo = data['srfwfmemo'] ? data['srfwfmemo'] : '';
        data.srffrontuf = data['srffrontuf'] ? data['srffrontuf'] : '';
        super(data);
        //  表单自持属性
        this.$ownKeys = ['srfupdatedate', 'srforikey', 'srfkey', 'srfmajortext', 'srftempmode', 'srfuf', 'srfdeid', 'srfsourcekey', 'productuid', 'ibizhardwarename', 'unit', 'unitprice', 'producer', 'ibizhardwareid'];
    }
    get srfupdatedate() {
        return this.$DO.updatedate;
    }
    set srfupdatedate(value: any) {
        this.$DO.updatedate = value;
    }
    get srfkey() {
        return this.$DO.ibizhardwareid;
    }
    set srfkey(value: any) {
        this.$DO.ibizhardwareid = value;
    }
    get srfmajortext() {
        return this.$DO.ibizhardwarename;
    }
    set srfmajortext(value: any) {
        this.$DO.ibizhardwarename = value;
    }
    get productuid() {
        return this.$DO.productuid;
    }
    set productuid(value: any) {
        this.$DO.productuid = value;
    }
    get ibizhardwarename() {
        return this.$DO.ibizhardwarename;
    }
    set ibizhardwarename(value: any) {
        this.$DO.ibizhardwarename = value;
    }
    get unit() {
        return this.$DO.unit;
    }
    set unit(value: any) {
        this.$DO.unit = value;
    }
    get unitprice() {
        return this.$DO.unitprice;
    }
    set unitprice(value: any) {
        this.$DO.unitprice = value;
    }
    get producer() {
        return this.$DO.producer;
    }
    set producer(value: any) {
        this.$DO.producer = value;
    }
    get ibizhardwareid() {
        return this.$DO.ibizhardwareid;
    }
    set ibizhardwareid(value: any) {
        this.$DO.ibizhardwareid = value;
    }
    // 界面主键标识
    get ibizhardware() {
        return this.$DO.ibizhardwareid;
    }

    set ibizhardware(value: any) {
        this.$DO.ibizhardwareid = value;
    }

    //  工作流预置字段
    srfwfmemo: any;
    srffrontuf: any;

    //  无实体属性表单项
    get srftempmode() {
        return this.$DO.srftempmode;
    }

    set srftempmode(value: any) {
        this.$DO.srftempmode = value;
    }

    //  表单重复器

    /**
     * 返回后台数据
     *
     * @return {*} 
     * @memberof FormControlVO
     */
	public getDo() {
        return {
            srffrontuf: this.srffrontuf,
            productuid: this.$DO.productuid,
ibizhardwarename: this.$DO.ibizhardwarename,
unit: this.$DO.unit,
unitprice: this.$DO.unitprice,
producer: this.$DO.producer,
updatedate: this.$DO.updatedate,
ibizhardwareid: this.$DO.ibizhardwareid,
        }
	}

}